<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发现 - 社交网站</title>
    
    <!-- 引入所需的CDN文件 -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #eef0ff;
            --secondary: #6c757d;
            --accent: #f72585;
            --light: #f8f9fa;
            --dark: #212529;
            --shadow: 0 4px 12px rgba(0,0,0,0.08);
            --transition: all 0.3s ease;
        }
        
        body {
            background-color: #f5f7fa;
            color: var(--dark);
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        }
        
        .section-header {
            margin-bottom: 1.5rem;
        }
        
        .section-title {
            font-weight: 700;
            font-size: 1.5rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 40px;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px;
        }
        
        .section-more {
            color: var(--primary);
            font-size: 0.9rem;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .section-more:hover {
            color: #3a0ca3;
            text-decoration: underline;
        }
        
        /* 卡片通用样式 */
        .recommendation-card {
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: none;
        }
        
        .recommendation-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        /* 专题推荐样式 */
        .topic-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .topic-image-container {
            position: relative;
            height: 160px;
            overflow: hidden;
        }
        
        .topic-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .topic-card:hover .topic-image {
            transform: scale(1.07);
        }
        
        .topic-category {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: var(--primary);
            color: white;
            font-size: 0.75rem;
            padding: 3px 10px;
            border-radius: 20px;
            z-index: 2;
        }
        
        .topic-content {
            padding: 1rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .topic-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            transition: var(--transition);
        }
        
        .topic-card:hover .topic-title {
            color: var(--primary);
        }
        
        .topic-meta {
            display: flex;
            font-size: 0.8rem;
            color: var(--secondary);
            margin-bottom: 0.75rem;
        }
        
        .topic-meta span:not(:last-child) {
            margin-right: 1rem;
        }
        
        .topic-meta i {
            margin-right: 4px;
            color: var(--primary);
        }
        
        .topic-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: auto;
        }
        
        .topic-tag {
            font-size: 0.75rem;
            padding: 2px 8px;
            background-color: var(--primary-light);
            color: var(--primary);
            border-radius: 12px;
        }
        
        /* 用户推荐样式 */
        .user-card {
            text-align: center;
            padding: 1.5rem 1rem;
        }
        
        .user-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 1rem;
            border: 3px solid white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .user-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .user-bio {
            font-size: 0.85rem;
            color: var(--secondary);
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .user-stats {
            display: flex;
            justify-content: center;
            gap: 1rem;
            font-size: 0.8rem;
            margin-bottom: 1rem;
        }
        
        .user-stat {
            display: flex;
            flex-direction: column;
        }
        
        .user-stat-value {
            font-weight: 600;
            color: var(--primary);
        }
        
        .user-stat-label {
            color: var(--secondary);
        }
        
        /* 活动推荐样式 */
        .event-card {
            display: flex;
            flex-direction: column;
        }
        
        .event-date {
            background-color: var(--accent);
            color: white;
            text-align: center;
            padding: 0.75rem 0;
        }
        
        .event-month {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .event-day {
            font-size: 1.8rem;
            font-weight: 700;
            line-height: 1;
        }
        
        .event-details {
            padding: 1rem;
        }
        
        .event-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .event-location {
            display: flex;
            align-items: center;
            font-size: 0.85rem;
            color: var(--secondary);
            margin-bottom: 0.75rem;
        }
        
        .event-location i {
            margin-right: 5px;
            color: var(--accent);
        }
        
        .event-participants {
            display: flex;
            align-items: center;
            font-size: 0.85rem;
        }
        
        .participant-avatars {
            display: flex;
        }
        
        .participant-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            margin-left: -8px;
        }
        
        .participant-avatar:first-child {
            margin-left: 0;
        }
        
        .participant-count {
            margin-left: 8px;
            color: var(--secondary);
        }
        
        /* 内容推荐样式 */
        .content-card {
            display: flex;
            flex-direction: column;
        }
        
        .content-image-container {
            position: relative;
            height: 140px;
        }
        
        .content-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .content-type {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(0,0,0,0.6);
            color: white;
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 4px;
        }
        
        .content-info {
            padding: 1rem;
        }
        
        .content-title {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 0.75rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .content-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: var(--secondary);
        }
        
        .content-author {
            display: flex;
            align-items: center;
        }
        
        .content-author-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 6px;
        }
        
        .content-actions {
            display: flex;
            gap: 1rem;
        }
        
        .content-action {
            display: flex;
            align-items: center;
        }
        
        .content-action i {
            margin-right: 4px;
        }
        
        /* 通用按钮样式 */
        .btn-primary-custom {
            background-color: var(--primary);
            color: white;
            border: none;
            transition: var(--transition);
        }
        
        .btn-primary-custom:hover {
            background-color: #3a0ca3;
            color: white;
        }
        
        .btn-outline-custom {
            background-color: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
            transition: var(--transition);
        }
        
        .btn-outline-custom:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 布局响应式调整 */
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.25rem;
            }
            
            .topic-image-container {
                height: 140px;
            }
            
            .content-image-container {
                height: 120px;
            }
        }
    </style>
</head>
<body>
    <div class="container py-6">
        <!-- 页面标题 -->
        <h1 class="mb-6 text-2xl font-bold">为你推荐</h1>
        
        <!-- 专题推荐 -->
        <div class="mb-8">
            <div class="section-header d-flex justify-content-between align-items-end">
                <h2 class="section-title">热门专题</h2>
                <a href="#" class="section-more">查看全部 <i class="fas fa-chevron-right ms-1"></i></a>
            </div>
            
            <div class="row gap-4">
                <!-- 单图专题 -->
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card topic-card">
                        <div class="topic-image-container">
                            <img src="https://picsum.photos/400/300?random=10" alt="城市咖啡馆" class="topic-image">
                            <span class="topic-category">美食</span>
                        </div>
                        <div class="topic-content">
                            <h3 class="topic-title">城市隐藏咖啡馆地图</h3>
                            <div class="topic-meta">
                                <span><i class="fas fa-eye"></i> 24.5k</span>
                                <span><i class="fas fa-heart"></i> 3.2k</span>
                            </div>
                            <div class="topic-tags">
                                <span class="topic-tag">咖啡</span>
                                <span class="topic-tag">探店</span>
                                <span class="topic-tag">城市</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图专题 -->
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card topic-card">
                        <div class="topic-content" style="padding-top: 1.5rem;">
                            <span class="topic-category">职场</span>
                            <h3 class="topic-title">30岁前必须掌握的职场法则</h3>
                            <div class="topic-meta">
                                <span><i class="fas fa-eye"></i> 18.7k</span>
                                <span><i class="fas fa-heart"></i> 2.5k</span>
                            </div>
                            <div class="topic-tags">
                                <span class="topic-tag">职场</span>
                                <span class="topic-tag">成长</span>
                                <span class="topic-tag">技巧</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 多图专题 -->
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card topic-card">
                        <div class="topic-image-container" style="display: grid; grid-template-columns: 1fr 1fr; gap: 4px;">
                            <img src="https://picsum.photos/200/300?random=21" alt="旅行照片1" class="topic-image">
                            <img src="https://picsum.photos/200/300?random=22" alt="旅行照片2" class="topic-image">
                            <span class="topic-category">旅行</span>
                        </div>
                        <div class="topic-content">
                            <h3 class="topic-title">全球小众旅行目的地</h3>
                            <div class="topic-meta">
                                <span><i class="fas fa-eye"></i> 32.1k</span>
                                <span><i class="fas fa-heart"></i> 5.8k</span>
                            </div>
                            <div class="topic-tags">
                                <span class="topic-tag">旅行</span>
                                <span class="topic-tag">小众</span>
                                <span class="topic-tag">攻略</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 单图专题 -->
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card topic-card">
                        <div class="topic-image-container">
                            <img src="https://picsum.photos/400/300?random=30" alt="健身" class="topic-image">
                            <span class="topic-category">健康</span>
                        </div>
                        <div class="topic-content">
                            <h3 class="topic-title">忙碌生活中的高效健身</h3>
                            <div class="topic-meta">
                                <span><i class="fas fa-eye"></i> 15.3k</span>
                                <span><i class="fas fa-heart"></i> 2.1k</span>
                            </div>
                            <div class="topic-tags">
                                <span class="topic-tag">健身</span>
                                <span class="topic-tag">健康</span>
                                <span class="topic-tag">高效</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 用户推荐 -->
        <div class="mb-8">
            <div class="section-header d-flex justify-content-between align-items-end">
                <h2 class="section-title">你可能感兴趣的人</h2>
                <a href="#" class="section-more">查看全部 <i class="fas fa-chevron-right ms-1"></i></a>
            </div>
            
            <div class="row gap-4">
                <div class="col-12 col-sm-6 col-md-4 col-lg-2">
                    <div class="recommendation-card user-card">
                        <img src="https://picsum.photos/200/200?random=1" alt="用户头像" class="user-avatar">
                        <h3 class="user-name">摄影爱好者</h3>
                        <p class="user-bio">用镜头捕捉生活中的美好瞬间</p>
                        <div class="user-stats">
                            <div class="user-stat">
                                <span class="user-stat-value">2.4k</span>
                                <span class="user-stat-label">粉丝</span>
                            </div>
                            <div class="user-stat">
                                <span class="user-stat-value">368</span>
                                <span class="user-stat-label">作品</span>
                            </div>
                        </div>
                        <button class="btn btn-primary-custom btn-sm w-100">关注</button>
                    </div>
                </div>
                
                <div class="col-12 col-sm-6 col-md-4 col-lg-2">
                    <div class="recommendation-card user-card">
                        <img src="https://picsum.photos/200/200?random=2" alt="用户头像" class="user-avatar">
                        <h3 class="user-name">美食家Lily</h3>
                        <p class="user-bio">探寻城市里的隐藏美食</p>
                        <div class="user-stats">
                            <div class="user-stat">
                                <span class="user-stat-value">5.7k</span>
                                <span class="user-stat-label">粉丝</span>
                            </div>
                            <div class="user-stat">
                                <span class="user-stat-value">124</span>
                                <span class="user-stat-label">作品</span>
                            </div>
                        </div>
                        <button class="btn btn-primary-custom btn-sm w-100">关注</button>
                    </div>
                </div>
                
                <div class="col-12 col-sm-6 col-md-4 col-lg-2">
                    <div class="recommendation-card user-card">
                        <img src="https://picsum.photos/200/200?random=3" alt="用户头像" class="user-avatar">
                        <h3 class="user-name">旅行博主</h3>
                        <p class="user-bio">走过30个国家，分享旅行故事</p>
                        <div class="user-stats">
                            <div class="user-stat">
                                <span class="user-stat-value">12.8k</span>
                                <span class="user-stat-label">粉丝</span>
                            </div>
                            <div class="user-stat">
                                <span class="user-stat-value">215</span>
                                <span class="user-stat-label">作品</span>
                            </div>
                        </div>
                        <button class="btn btn-outline-custom btn-sm w-100">已关注</button>
                    </div>
                </div>
                
                <div class="col-12 col-sm-6 col-md-4 col-lg-2">
                    <div class="recommendation-card user-card">
                        <img src="https://picsum.photos/200/200?random=4" alt="用户头像" class="user-avatar">
                        <h3 class="user-name">程序员Alex</h3>
                        <p class="user-bio">分享前端开发技巧和经验</p>
                        <div class="user-stats">
                            <div class="user-stat">
                                <span class="user-stat-value">8.3k</span>
                                <span class="user-stat-label">粉丝</span>
                            </div>
                            <div class="user-stat">
                                <span class="user-stat-value">96</span>
                                <span class="user-stat-label">作品</span>
                            </div>
                        </div>
                        <button class="btn btn-primary-custom btn-sm w-100">关注</button>
                    </div>
                </div>
                
                <div class="col-12 col-sm-6 col-md-4 col-lg-2">
                    <div class="recommendation-card user-card">
                        <img src="https://picsum.photos/200/200?random=5" alt="用户头像" class="user-avatar">
                        <h3 class="user-name">健身教练Mike</h3>
                        <p class="user-bio">科学健身指导，塑造完美身材</p>
                        <div class="user-stats">
                            <div class="user-stat">
                                <span class="user-stat-value">6.5k</span>
                                <span class="user-stat-label">粉丝</span>
                            </div>
                            <div class="user-stat">
                                <span class="user-stat-value">78</span>
                                <span class="user-stat-label">作品</span>
                            </div>
                        </div>
                        <button class="btn btn-primary-custom btn-sm w-100">关注</button>
                    </div>
                </div>
                
                <div class="col-12 col-sm-6 col-md-4 col-lg-2">
                    <div class="recommendation-card user-card">
                        <img src="https://picsum.photos/200/200?random=6" alt="用户头像" class="user-avatar">
                        <h3 class="user-name">设计师小雨</h3>
                        <p class="user-bio">UI/UX设计师，分享设计灵感</p>
                        <div class="user-stats">
                            <div class="user-stat">
                                <span class="user-stat-value">4.2k</span>
                                <span class="user-stat-label">粉丝</span>
                            </div>
                            <div class="user-stat">
                                <span class="user-stat-value">156</span>
                                <span class="user-stat-label">作品</span>
                            </div>
                        </div>
                        <button class="btn btn-outline-custom btn-sm w-100">已关注</button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 活动推荐 -->
        <div class="mb-8">
            <div class="section-header d-flex justify-content-between align-items-end">
                <h2 class="section-title">即将开始的活动</h2>
                <a href="#" class="section-more">查看全部 <i class="fas fa-chevron-right ms-1"></i></a>
            </div>
            
            <div class="row gap-4">
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card event-card">
                        <div class="event-date">
                            <div class="event-month">六月</div>
                            <div class="event-day">15</div>
                        </div>
                        <div class="event-details">
                            <h3 class="event-title">城市音乐节</h3>
                            <div class="event-location">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>中央公园音乐广场</span>
                            </div>
                            <div class="event-participants">
                                <div class="participant-avatars">
                                    <img src="https://picsum.photos/50/50?random=11" alt="参与者" class="participant-avatar">
                                    <img src="https://picsum.photos/50/50?random=12" alt="参与者" class="participant-avatar">
                                    <img src="https://picsum.photos/50/50?random=13" alt="参与者" class="participant-avatar">
                                </div>
                                <span class="participant-count">+128人参加</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card event-card">
                        <div class="event-date">
                            <div class="event-month">六月</div>
                            <div class="event-day">18</div>
                        </div>
                        <div class="event-details">
                            <h3 class="event-title">摄影爱好者交流会</h3>
                            <div class="event-location">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>创意产业园B座</span>
                            </div>
                            <div class="event-participants">
                                <div class="participant-avatars">
                                    <img src="https://picsum.photos/50/50?random=14" alt="参与者" class="participant-avatar">
                                    <img src="https://picsum.photos/50/50?random=15" alt="参与者" class="participant-avatar">
                                </div>
                                <span class="participant-count">+45人参加</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card event-card">
                        <div class="event-date">
                            <div class="event-month">六月</div>
                            <div class="event-day">22</div>
                        </div>
                        <div class="event-details">
                            <h3 class="event-title">职场技能分享会</h3>
                            <div class="event-location">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>创客空间会议室</span>
                            </div>
                            <div class="event-participants">
                                <div class="participant-avatars">
                                    <img src="https://picsum.photos/50/50?random=16" alt="参与者" class="participant-avatar">
                                    <img src="https://picsum.photos/50/50?random=17" alt="参与者" class="participant-avatar">
                                    <img src="https://picsum.photos/50/50?random=18" alt="参与者" class="participant-avatar">
                                    <img src="https://picsum.photos/50/50?random=19" alt="参与者" class="participant-avatar">
                                </div>
                                <span class="participant-count">+76人参加</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="col-12 col-md-6 col-lg-3">
                    <div class="recommendation-card event-card">
                        <div class="event-date">
                            <div class="event-month">六月</div>
                            <div class="event-day">25</div>
                        </div>
                        <div class="event-details">
                            <h3 class="event-title">户外徒步活动</h3>
                            <div class="event-location">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>青山国家森林公园</span>
                            </div>
                            <div class="event-participants">
                                <div class="participant-avatars">
                                    <img src="https://picsum.photos/50/50?random=20" alt="参与者" class="participant-avatar">
                                    <img src="https://picsum.photos/50/50?random=21" alt="参与者" class="participant-avatar">
                                </div>
                                <span class="participant-count">+32人参加</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 内容推荐 -->
        <div class="mb-8">
            <div class="section-header d-flex justify-content-between align-items-end">
                <h2 class="section-title">为你精选的内容</h2>
                <a href="#" class="section-more">查看全部 <i class="fas fa-chevron-right ms-1"></i></a>
            </div>
            
            <div class="row gap-4">
                <div class="col-12 col-md-6 col-lg-4">
                    <div class="recommendation-card content-card">
                        <div class="content-image-container">
                            <img src="https://picsum.photos/600/400?random=31" alt="文章图片" class="content-image">
                            <span class="content-type">文章</span>
                        </div>
                        <div class="content-info">
                            <h3 class="content-title">如何在30分钟内做出营养均衡的早餐</h3>
                            <div class="content-meta">
                                <div class="content-author">
                                    <img src="https://picsum.photos/50/50?random=32" alt="作者头像" class="content-author-avatar">
                                    <span>健康饮食专家</span>
                                </div>
                                <div class="content-actions">
                                    <div class="content-action"><i class="far fa-heart"></i> 1.2k</div>
                                    <div class="content-action"><i class="far fa-comment"></i> 86</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="col-12 col-md-6 col-lg-4">
                    <div class="recommendation-card content-card">
                        <div class="content-image-container">
                            <img src="https://picsum.photos/600/400?random=33" alt="视频封面" class="content-image">
                            <span class="content-type">视频</span>
                        </div>
                        <div class="content-info">
                            <h3 class="content-title">一周城市骑行路线推荐，探索城市另一面</h3>
                            <div class="content-meta">
                                <div class="content-author">
                                    <img src="https://picsum.photos/50/50?random=34" alt="作者头像" class="content-author-avatar">
                                    <span>骑行爱好者</span>
                                </div>
                                <div class="content-actions">
                                    <div class="content-action"><i class="far fa-heart"></i> 3.5k</div>
                                    <div class="content-action"><i class="far fa-comment"></i> 215</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="col-12 col-md-6 col-lg-4">
                    <div class="recommendation-card content-card">
                        <div class="content-image-container">
                            <img src="https://picsum.photos/600/400?random=35" alt="图集封面" class="content-image">
                            <span class="content-type">图集</span>
                        </div>
                        <div class="content-info">
                            <h3 class="content-title">世界上最美的10个图书馆，书迷必去之地</h3>
                            <div class="content-meta">
                                <div class="content-author">
                                    <img src="https://picsum.photos/50/50?random=36" alt="作者头像" class="content-author-avatar">
                                    <span>旅行摄影师</span>
                                </div>
                                <div class="content-actions">
                                    <div class="content-action"><i class="far fa-heart"></i> 5.7k</div>
                                    <div class="content-action"><i class="far fa-comment"></i> 342</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 关注用户功能
        document.querySelectorAll('.btn-primary-custom').forEach(btn => {
            btn.addEventListener('click', function() {
                const userName = this.closest('.user-card').querySelector('.user-name').textContent;
                
                // 切换按钮状态
                this.classList.remove('btn-primary-custom');
                this.classList.add('btn-outline-custom');
                this.textContent = '已关注';
                
                // 显示提示
                showToast(`已关注 ${userName}`);
            });
        });
        
        // 取消关注功能
        document.querySelectorAll('.btn-outline-custom').forEach(btn => {
            if (btn.textContent.trim() === '已关注') {
                btn.addEventListener('click', function() {
                    const userName = this.closest('.user-card').querySelector('.user-name').textContent;
                    
                    if (confirm(`确定要取消关注 ${userName} 吗？`)) {
                        this.classList.remove('btn-outline-custom');
                        this.classList.add('btn-primary-custom');
                        this.textContent = '关注';
                        
                        // 显示提示
                        showToast(`已取消关注 ${userName}`);
                    }
                });
            }
        });
        
      
        
        // 内容卡片点击事件
        document.querySelectorAll('.content-card').forEach(card => {
            card.addEventListener('click', function() {
                const contentTitle = this.querySelector('.content-title').textContent;
                const contentType = this.querySelector('.content-type').textContent;
                
                // 在实际应用中，这里会跳转到内容详情页
                alert(`打开${contentType}：${contentTitle}`);
            });
        });
        
        // 专题卡片点击事件
        document.querySelectorAll('.topic-card').forEach(card => {
            card.addEventListener('click', function(e) {
                // 如果点击的是标签，不触发卡片点击事件
                if (e.target.closest('.topic-tags')) return;
                
                const topicTitle = this.querySelector('.topic-title').textContent;
                
                // 在实际应用中，这里会跳转到专题详情页
                alert(`打开专题：${topicTitle}`);
            });
        });
    </script>
</body>
</html>
    
